
export  class FWConfig {
    //界面黑色背景预制体的名称
    static BLACK_PREFAB_NAME = "prefabs/ui/BlackBgView";
}

export class GlobalEventName{
    //当道具被点击后更改点击状态
    static ITEM_CHANGE_CLICK_STATE = "fw_item_change_click_state";

    //界面关闭事件
    static CLOSE_VIEW = "fw_close_view";

    static CHANGE_LANG = "fw_change_lang";

    static CHANGE_GAME = "fw_change_game";

    static USER_LOGIN = "fw_user_login";

    static USER_LOGOUT = "fw_user_logout";

    static ENTER_GAME = "fw_enter_game";

    static EXIT_GAME = "fw_exit_game";

    static BACK_GROUND = "BACK_GROUND";

    static FORE_GROUND = "FORE_GROUND";
}

export enum ClickState{
    NOT_CLICK, //未点击。
    CLICKED,// 被点击
}

export class SpriteState{
    static NORMAL: number = 0;
    static GRAY: number = 1;
}

export enum Direction{
    HORIZONTAL,//横向
    VERTICAL,//纵向
}

export enum GlobalIndex {
    LAYER = 999

}

export enum ItemState {
    NOT_GET,//不可领取
    GOT, //已领取
    CAN_GET,//可领取
}

export enum XlsxType {
    DATA, //单独的数据
    TEMPLATE, //合并到一起的数据
    LANG,// 语言文本。
}

export enum LangType{
    STRING,
    SPRITE,
    BUTTON,
}



export enum ENV_TYPE{
    DEV,// 开发环境
    QA, // 测试环境
    RELEASE, // 线上环境。
}

export enum CompareType {
    LESS_EQUAL,
    MORE_EQUAL,    
    LESS,
    MORE,
    EQUAL,
    NOT_EQUAL,

}


export function isNull(obj:any){
    return obj == undefined || obj == null;
}

export enum DIR{
    RIGHT,
    LEFT,
    UP,
    DOWN,
}

//UI是否走对象池。
export let isPoolUI:boolean = false;

